package mumethod;

import mudbconnection.DBStudents;
import mudbconnection.DBUsers;
import muobject.User;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;


@Component("AccessUsersService")
public class AccessUsersService implements AccessUsers{
	
	@Autowired
	private DBUsers dbUsers;
	
	public User getTopUser(){
		return dbUsers.getTopUser();
	}
	
	public boolean setAccountPassword(String account, String password, int uid){
		return dbUsers.setAccountPassword(account, password, uid);
	}
}
